package com.blog.admin.service;

import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blog.common.domain.entity.FileInfo;
import com.blog.common.domain.vo.FileInfoVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;

import static com.blog.common.core.constant.CacheConstants.FILE_INFO;
import static com.blog.common.core.constant.ServiceConst.IS_FALSE;

/**
 * <p>
 * 文件 服务类
 * </p>
 *
 * @author Valerie
 * @since 2023-03-11
 */
public interface FileInfoService extends IService<FileInfo> {

    /**
     * 刷新图片缓存
     * @param key 键
     *
     * @return void
     */
    void refreshFileInfoList(String key);


    /**
     * 获取图片列表
     *
     * @return {@link List< FileInfoVo>}
     */
    List<FileInfoVo> listFileInfo();
}
